package club.baimahu.pencil.domain.entity.tree;

public abstract class  AbstractTreeNode implements TreeNode {

//    private String nodeName;
//    private Long nodeId;
//    private Collection<TreeNode> children;
//    private TreeNode parentTreeNode;


/*    protected AbstractTreeNode(Long nodeId,String nodeName,TreeNode parentTreeNode){
        this.nodeId = nodeId;
        this.nodeName = nodeName;
        this.parentTreeNode = parentTreeNode;
    }*/

    public abstract void  addChildTreeNode(TreeNode treeNode);


    @Override
    public boolean isRootNode() {
        return nodeId().equals(Long.valueOf(-1L));
    }



}
